package io.github.hadyang.leetcode.offer;

import org.junit.Test;

/** @author haoyang.shi */
public class Sum {

  @Test
  public void test() {
    System.out.println(Sum_Solution(5));
  }

  public int Sum_Solution(int n) {
    int ans = n;
    boolean t = ((ans != 0) && ((ans += Sum_Solution(n - 1)) != 0));
    return ans;
  }
}
